<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <title>管理平台</title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <link rel="shortcut icon" id="dynamic-favicon" href="${request.contextPath}/public/favicon.ico">
  <link rel="stylesheet" href="${request.contextPath}/statics/css/bootstrap.min.css">
  <link rel="stylesheet" href="${request.contextPath}/statics/css/font-awesome.min.css">
  <link rel="stylesheet" href="${request.contextPath}/statics/css/AdminLTE.min.css">
  <!-- AdminLTE Skins. Choose a skin from the css/skins
       folder instead of downloading all of them to reduce the load. -->
  <link rel="stylesheet" href="${request.contextPath}/statics/css/all-skins.min.css">
  <link rel="stylesheet" href="${request.contextPath}/statics/css/main.css">
  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->
  <style>
      #msgList {
          box-shadow:2px 2px 10px #909090;
          padding: 0;
          border: none;
      }

      #msgList li {
          width: 350px;
      }

      #msgList li span {
          background-color: red;
      }

      .list-group-item-text {
          white-space: pre;
          overflow: hidden;
      }

      .animation-joggle {
          animation-name: shaky-slow;
          animation-duration: 4s;
          animation-iteration-count: infinite;
      }

      /* 动画代码 */
      @keyframes shaky-slow {
          0%    {color: yellow; transform: rotate(-10deg) scale(1.5,1.5);}
          10%   {color: #fff; transform: rotate(10deg);}
          20%   {color: yellow; transform: rotate(-10deg) scale(1.5,1.5);}
          30%   {color: #fff; transform: rotate(10deg);}
          40%   {color: yellow; transform: rotate(-10deg) scale(1.5,1.5);}
          50%   {color: #fff; transform: rotate(10deg);}
          60%   {color: yellow; transform: rotate(-10deg) scale(1.5,1.5);}
          70%   {color: #fff; transform: rotate(10deg);}
          80%   {color: yellow; transform: rotate(-10deg) scale(1.5,1.5);}
          90%   {color: #fff; transform: rotate(10deg);}
          100%  {color: yellow; transform: rotate(-10deg) scale(1.5,1.5);}
      }
  </style>
</head>
<!-- ADD THE CLASS layout-boxed TO GET A BOXED LAYOUT -->
<body class="hold-transition skin-blue sidebar-mini">
<!-- Site wrapper -->
<div class="wrapper" id="rrapp" v-cloak>
  <header class="main-header">
    <a href="index.html" class="logo">
      <!-- mini logo for sidebar mini 50x50 pixels -->
      <span class="logo-mini"><b>{{title}}</b></span>
      <!-- logo for regular state and mobile devices -->
        <span class="logo-lg"><b>{{title}}管理平台</b></span>
    </a>
    <!-- Header Navbar: style can be found in header.less -->
    <nav class="navbar navbar-static-top" role="navigation">
      <!-- Sidebar toggle button-->
      <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
        <span class="sr-only">Toggle navigation</span>
      </a>
	  <div style="float:left;color:#fff;padding:15px 10px;">
          <span>欢迎 {{user.username}}</span>
          <span v-show="1 == 2" class="label label-success bindingStatus" style="position: relative; display: inline-block;">
              已绑定微信
          </span>
          <span v-show="1 == 2" class="label label-danger bindingStatus" style="position: relative; display: inline-block;">
              <span @click="clickMeToo">未绑定微信</span>
              <span class="nav-download-img" v-show="showBinding">
                <img style="width: 140px;height: 140px;margin: 10px" alt="如果失效，请单击图片刷新！" :src="bindingQrCode" @click="refreshQrCode"/>
                <p style="color: #222D32;margin: 5px;">用<span style="color: #367FA9;">微信手机版</span>扫描二维码绑定</p>
              </span>
          </span>
      </div>
      <div class="navbar-custom-menu">
        <ul class="nav navbar-nav">
          <li>
            <a title="消息" class="fa fa-bell" id="msg-bell">
              <label class="label label-danger" style="right:0px"></label><!-- 总数量 -->
            </a>
              <ul id="msgList" class="dropdown-menu" style="display: none">
                  <li class="list-group-item" id="preOrderMessage">
                      <span class="badge">0</span><!-- 数量 -->
                      <h4 class="list-group-item-heading">
                          <a @click="routToTartget(0)">今天待处理订单</a>
                          <!--<button type="button" class="btn btn-info" @click="routToTartget(0)">今日待支付订单</button>-->
                      </h4>
                      <p class="list-group-item-text"></p><!-- 显示最新的一条记录：时间 + 昵称 + 金额 -->
                  </li>
                  <li class="list-group-item" id="complainMessage">
                      <span class="badge">0</span><!-- 数量 -->
                      <h4 class="list-group-item-heading">
                          <a @click="routToTartget(1)">今天待处理投诉</a>
                      </h4>
                      <p class="list-group-item-text"></p><!-- 显示最新的一条记录：时间 + 昵称 -->
                  </li>
                  <li class="list-group-item" id="withdrawalMessage" style="display: none">
                      <span class="badge">0</span><!-- 数量 -->
                      <h4 class="list-group-item-heading">
                          <a @click="routToTartget(2)">待处理提现</a>
                      </h4>
                      <p class="list-group-item-text"></p><!-- 显示最新的一条记录：时间 + 昵称 + 金额 -->
                  </li>
              </ul>
          </li>
		  <li><a href="javascript:;" @click="updatePassword"><i class="fa fa-lock"></i> &nbsp;修改密码</a></li>
          <li><a href="logout"><i class="fa fa-sign-out"></i> &nbsp;退出系统</a></li>
		</ul>
      </div>
    </nav>
  </header>

  <!-- =============================================== -->

  <!-- Left side column. contains the sidebar -->
  <aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
      <!-- /.search form -->
      <!-- sidebar menu: : style can be found in sidebar.less -->
      <ul class="sidebar-menu">
        <li class="header">导航菜单</li>

        <!-- vue生成的菜单 -->
		<menu-item :item="item" v-for="item in menuList"></menu-item>
      </ul>
    </section>
    <!-- /.sidebar -->
  </aside>
  <!-- =============================================== -->
  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper" style="z-index: 9999">
    <!-- Content Header (Page header) -->
    <section class="content-header">
      <ol class="breadcrumb" id="nav_title" style="position:static;float:none;">
        <li class="active"><i class="fa fa-home" style="font-size:20px;position:relative;top:2px;left:-3px;"></i> &nbsp; 首页</li>
        <li class="active"><a  onclick="reload()" style="text-decoration: underline">{{navTitle}}</a></li>
      </ol>
    </section>

    <!-- Main content -->
    <section class="content" style="background:#fff;">
      <iframe scrolling="yes" frameborder="0" style="z-index: 9999;width:100%;min-height:200px;overflow:visible;background:#fff;" :src="main"></iframe>
    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

  <footer class="main-footer">
    <div class="pull-right hidden-xs">
      Version 4.0.0
    </div>
    Copyright &copy; 2019 <a href="" target="_blank">lkt</a> All Rights Reserved
  </footer>

  <!-- Add the sidebar's background. This div must be placed
       immediately after the control sidebar -->
  <div class="control-sidebar-bg"></div>

  <!-- 修改密码 -->
<div id="passwordLayer" style="display: none;">
	<form class="form-horizontal">
	<div class="form-group">
		<div class="form-group">
		   	<div class="col-sm-2 control-label">账号</div>
		    <span class="label label-success" style="vertical-align: bottom;">{{user.username}}</span>
		</div>
		<div class="form-group">
		   	<div class="col-sm-2 control-label">原密码</div>
		   	<div class="col-sm-10">
		      <input type="password" class="form-control" v-model="password" placeholder="原密码"/>
		    </div>
		</div>
		<div class="form-group">
		   	<div class="col-sm-2 control-label">新密码</div>
		   	<div class="col-sm-10">
		      <input type="text" class="form-control" v-model="newPassword" placeholder="新密码"/>
		    </div>
		</div>
	</div>
	</form>
</div>

</div>
<!-- ./wrapper -->

<script src="${request.contextPath}/statics/libs/jquery.min.js"></script>
<script src="${request.contextPath}/statics/libs/vue.min.js"></script>
<script src="${request.contextPath}/statics/libs/router.js"></script>
<script src="${request.contextPath}/statics/libs/bootstrap.min.js"></script>
<script src="${request.contextPath}/statics/libs/app.js"></script>
<script src="${request.contextPath}/statics/plugins/layer/layer.js"></script>
<script src="${request.contextPath}/statics/js/index.js"></script>
<script>
    function reload() {
        this.window.location.reload();
    }
</script>
</body>
</html>
